package net.woggle.shackbrowseapi;

import java.io.IOException;

import javax.servlet.http.*;

public class UpdateCookie extends HttpServlet {
	
	static final String USER_AGENT = "shackbrowseAPI/1.1";
	
	public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
		
		if (LoginDownload.loginAndUpdateCookie())
			resp.getWriter().print("Successfully updated cookie");
		else
			resp.getWriter().print("Login Failure");
	}
}